import React from 'react';
import {
	View,
	Navigator,
	TouchableOpacity,
	Text,
	StyleSheet
} from 'react-native';

export default class LoginSuccess extends React.Component {
	// static navigationOptions = {
	// 	title: 'HOME'
	// }

	jumpBack = () => {
		const { navigate } = this.props.navigation;
		navigate('Login');
	}
	render() {
		return (
				<View>
					<TouchableOpacity
						onPress={this.jumpBack}
						style={styles.container}
					>
						<Text>注册成功，点击返回！</Text>
					</TouchableOpacity>
				</View>
			)
	}
}



const styles = StyleSheet.create({
	container: {
		marginTop: 260,
		alignItems: 'center',
		justifyContent: 'center'
	}
})